﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using GpsAddIn2003.Core;

namespace GpsAddIn2003
{
    [ComVisibleAttribute(true)]
    [ClassInterface(ClassInterfaceType.None)]
    [Guid("44F06029-CEE1-4f10-B5E1-E9FA62F183E1")]
    public class GPSWatchingInterface : GpsAddIn2003.IGPSWatchingInterface
    {
        public void OpenGPSForm()
        {
            MainFrm mf = new MainFrm();
            mf.Show();
        }
        public void ChangeVBARunStatus(bool StatusFlag)
        {
            Utility.IsVBAFuncRunning = StatusFlag;
        }
        public void OpenGPSMapRePlay(string CarCode)
        {
            CommOp co = new CommOp();
            co.GetVehiclePlay(CarCode);
        }
        public void OpenWebForGPSMap(string CarCode)
        {
            CommOp co = new CommOp();
            co.GetVehicleNowMap(CarCode);
        }
    }
}
